package entity;

import java.util.Date;

public class DiaryInFo {
    private Integer id;//留言编号
    private Integer userId;//用户编号
    private Date diaryDay;//日记日期
    private String weather;//天气状态
    private String mood;//心情
    private String contents;//日记内容
    private Date reportTime;//日记记录时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDiaryDay() {
        return diaryDay;
    }

    public void setDiaryDay(Date diaryDay) {
        this.diaryDay = diaryDay;
    }

    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public String getMood() {
        return mood;
    }

    public void setMood(String mood) {
        this.mood = mood;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Date getReportTime() {
        return reportTime;
    }

    public void setReportTime(Date reportTime) {
        this.reportTime = reportTime;
    }
    public Object[] toArray(){
        return new Object[]{userId,diaryDay,weather,mood,contents,reportTime};
    }
    @Override
    public String toString() {
        return id+"\t"+userId+"\t"+weather+"\t"+mood+"\t"+contents;
    }
}


